package com.henau.domain;

import java.util.List;
import java.util.Objects;

public class CarTeam {
    private int CarTeamId;
    private String CarTeamName;//车队名字
    private String PersonLiable;//责任人
    private String CarTeamTel;//联系电话
    private String CarCompany;//所属公司
    private String CarTeamDescribe;//描述
    private List<Car> car;

    public List<Car> getCar() {
        return car;
    }

    public void setCar(List<Car> car) {
        this.car = car;
    }

    public int getCarTeamId() {
        return CarTeamId;
    }

    public void setCarTeamId(int carTeamId) {
        CarTeamId = carTeamId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CarTeam carTeam = (CarTeam) o;
        return Objects.equals(CarTeamName, carTeam.CarTeamName) &&
                Objects.equals(PersonLiable, carTeam.PersonLiable) &&
                Objects.equals(CarTeamTel, carTeam.CarTeamTel) &&
                Objects.equals(CarCompany, carTeam.CarCompany) &&
                Objects.equals(CarTeamDescribe, carTeam.CarTeamDescribe);
    }

    @Override
    public int hashCode() {
        return Objects.hash(CarTeamName, PersonLiable, CarTeamTel, CarCompany, CarTeamDescribe);
    }

    @Override
    public String toString() {
        return "CarTeam{" +
                "CarTeamId=" + CarTeamId +
                ", CarTeamName='" + CarTeamName + '\'' +
                ", PersonLiable='" + PersonLiable + '\'' +
                ", CarTeamTel='" + CarTeamTel + '\'' +
                ", CarCompany='" + CarCompany + '\'' +
                ", CarTeamDescribe='" + CarTeamDescribe + '\'' +
                ", car=" + car +
                '}';
    }

    public CarTeam(String carTeamName, String personLiable, String carTeamTel, String carCompany, String carTeamDescribe) {
        CarTeamName = carTeamName;
        PersonLiable = personLiable;
        CarTeamTel = carTeamTel;
        CarCompany = carCompany;
        CarTeamDescribe = carTeamDescribe;
    }

    public CarTeam() {
    }

    public String getCarTeamName() {
        return CarTeamName;
    }

    public void setCarTeamName(String carTeamName) {
        CarTeamName = carTeamName;
    }

    public String getPersonLiable() {
        return PersonLiable;
    }

    public void setPersonLiable(String personLiable) {
        PersonLiable = personLiable;
    }

    public String getCarTeamTel() {
        return CarTeamTel;
    }

    public void setCarTeamTel(String carTeamTel) {
        CarTeamTel = carTeamTel;
    }

    public String getCarCompany() {
        return CarCompany;
    }

    public void setCarCompany(String carCompany) {
        CarCompany = carCompany;
    }

    public String getCarTeamDescribe() {
        return CarTeamDescribe;
    }

    public void setCarTeamDescribe(String carTeamDescribe) {
        CarTeamDescribe = carTeamDescribe;
    }
}
